from __future__ import annotations

import arcade


SCREEN_WIDTH=600
SCREEN_HEIGHT=600


arcade.open_window(SCREEN_WIDTH,SCREEN_HEIGHT,'画个笑脸')

arcade.set_background_color(arcade.color.WHITE)

arcade.start_render()

# 画脸
x=300
y=300
radius=200
arcade.draw_circle_filled(x,y,radius,arcade.color.YELLOW)


# 画右眼
x=370
y=350
radius=20
arcade.draw_circle_filled(x,y,radius,arcade.color.BLACK)

# 画左眼
x=230
y=350
arcade.draw_circle_filled(x,y,radius,arcade.color.BLACK)


# 画微笑
x=300
y=280
width=120
height=100
start_angle=190
end_angle=350
arcade.draw_arc_outline(x,y,width,height,arcade.color.BLACK,start_angle,end_angle)


# 完成绘图并显示效果
arcade.finish_render()

# 使窗口打开，直到点击关闭
arcade.run()